Add staff role with content editing access and admin user management UI#472
Merged
JoeProgrammer88 merged 5 commits intomainfrom Mar 12, 2026
Merged
Add staff role with content editing access and admin user management UI#472JoeProgrammer88 merged 5 commits intomainfrom
JoeProgrammer88 merged 5 commits intomainfrom
Conversation
Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add capability for admin to manage staff user access
Add staff role with content editing access and admin user management UI
Mar 1, 2026
JoeProgrammer88
requested changes
Mar 12, 2026
Member
JoeProgrammer88
left a comment
There was a problem hiding this comment.
Except for the UserManagementController, the other controllers should use the AdminOrStaff role for the Authorize instead of Admin from the IdentityHelper class
Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Contributor
Author
Done in commit |
JoeProgrammer88
approved these changes
Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Admins need to create/manage staff accounts that can log in and edit site content, with the ability to promote staff to admin, demote admins back to staff, and delete staff accounts.
Role & Authorization
Staffrole constant andAdminOrStaff = "Admin,Staff"toIdentityHelperStaffrole registered at startup alongsideAdminAdminOrStaff— staff can edit all content and view analytics:AboutController,AgencyController,CalendarController,AdminController(Analytics),ProgramVideosController,PeopleControllerUserManagementControllerremains Admin-onlyUser Management
UserManagementController(Admin-only):Index,Create,Promote,Demote,DeleteUserManagementViewModelcarries user ID, email, and role flagsNavigation
Tests
UserManagementControllercovering all actions and edge cases (self-demotion, invalid IDs, failed creation)Copilot Summary
This PR was generated by GitHub Copilot.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.